<script setup lang="ts">
import HomeView from './views/HomeView.vue';
import login from './views/LoginView.vue';
import { onBeforeMount,ref } from 'vue';
// import List from './views/Distributor-C/List.vue';\
import { computed } from "vue";


// const token=ref()
// onBeforeMount(()=>{
//   console.log(sessionStorage.getItem("token"));
//   token.value=sessionStorage.getItem("token")
// })
// const gotoHome = (success:boolean)=>{
//   console.log(success);
  
//   if(success){
//     token.value = "token"
//   }
// }
</script>

<template>
  <div class="nav">
    
  
    <router-view></router-view>
  </div>
  
</template>

<style lang="less">
#app{
  height: 100%;
}
html{
  height: 100%;
}
body{
  margin: 0;
  padding: 0;
  height: 100%;
  
}
.nav{
  display: flex;
  height: 100%;
}

</style>
